﻿@{
    Layout = null;
}
@model Alabama.Models.LogOnModel
@{
    ViewBag.Title = "Đăng nhập hệ thống đăng ký lịch công tác";
}
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>@ViewBag.Title</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">
    <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
    <!--base css styles-->
    <link rel="stylesheet" href="/Content/assets/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="/Content/assets/bootstrap/bootstrap-responsive.min.css">
    <link rel="stylesheet" href="/Content/assets/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="/Content/assets/normalize/normalize.css">
    <!--page specific css styles-->
    <!--flaty css styles-->
    <link rel="stylesheet" href="/Content/css/flaty.css">
    <link rel="stylesheet" href="/Content/css/flaty-responsive.css">
    <style type="text/css">
        .field-validation-error, .validation-summary-errors, .field-validation-valid
        {
            color: Red;
        }
        ul
        {
            list-style: none;
            padding: 0;
        }
    </style>
    <script src="/Content/assets/modernizr/modernizr-2.6.2.min.js"></script>
</head>
<body class="login-page">
    <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->
    <!-- BEGIN Main Content -->
    <div class="login-wrapper">
        <!-- BEGIN Login Form -->
        @using (Html.BeginForm(null, null, FormMethod.Post, new { id = "form-login" }))
        {
            @Html.ValidationSummary(true, "Đăng nhập thất bại!")
            
            <h3>
                Đăng nhập hệ thống</h3>

            <hr />

            <div class="control-group">
                <div class="controls">
                    @Html.ValidationMessageFor(m => m.UserName, "")
                    @Html.TextBoxFor(m => m.UserName, new { @class = "input-block-level", placeholder = "Tên đăng nhập" })
                </div>
            </div>

            <div class="control-group">
                <div class="controls">
                    @Html.ValidationMessageFor(m => m.Password, "")
                    @Html.PasswordFor(m => m.Password, new { @class = "input-block-level", placeholder = "Mật khẩu" })
                </div>
            </div>

            <div class="control-group">
                <div class="controls">
                    <label class="checkbox">
                        @Html.CheckBoxFor(m => m.RememberMe)
                        Ghi nhớ lần sau
                    </label>
                </div>
            </div>

            <div class="control-group">
                <div class="controls">
                    <button type="submit" class="btn btn-primary input-block-level">
                        Đăng nhập</button>
                </div>
            </div>

            <hr />

            <p class="clearfix">
                @Html.ActionLink("Đăng ký", "Register", null, new { @class = "goto-register pull-right" })
            </p>
        }
    <script>        window.jQuery || document.write('<script src="/Content/assets/jquery/jquery-1.10.1.min.js"><\/script>')</script>
    <script src="/Content/assets/bootstrap/bootstrap.min.js"></script>
    <script type="text/javascript">
        function goToForm(form) {
            $('.login-wrapper > form:visible').fadeOut(500, function () {
                $('#form-' + form).fadeIn(500);
            });
        }
        $(function () {
            $('.goto-login').click(function () {
                goToForm('login');
            });
            $('.goto-forgot').click(function () {
                goToForm('forgot');
            });
            $('.goto-register').click(function () {
                goToForm('register');
            });
        });
    </script>
</body>
</html>
